/*
*
* UmsUserDetailMapper.java
* Copyright(C) 2017-2020 DHCC
* @date 2020-11-16
*/
package com.cluster.platform.dao;


import com.cluster.platform.model.UmsAdmin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UmsAdminDao {

    /**
     * 根据用户名更新用户简要信息
     * @param umsAdmin
     * @return
     */
    int updateByUserName(UmsAdmin umsAdmin);

    /**
     * 根据用户名查询用户信息
     */
    UmsAdmin searchByUsername(@Param("username") String username);

    /**
     * 根据userid批量删除用户详情信息
     */
    int batchDeleteByUserId(@Param("umsAdmins") List<UmsAdmin> umsAdmins);
}